import unittest
from htmltestreport import HTMLTestReport
from common.log_code import init_log_config
from config import BDSE_PATH
from scripts.manage_install_record import TestManageInstallRecord
from scripts.manage_user import TestManageUser
from scripts.testLogin import TestLogin
from scripts.testLogin_param import TestLoginParam
from scripts.userWithdrawRecord import TestWithdrawRecord


#日志初始化调用
init_log_config(filename="项目日志.log",when="midnight",interval=1,backupCount=3)
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(unittest.makeSuite(TestManageInstallRecord))
suite.addTest(unittest.makeSuite(TestManageUser))
suite.addTest(unittest.makeSuite(TestWithdrawRecord))
runn = HTMLTestReport(BDSE_PATH+"/report/manageReport.html")
runn.run(suite)